home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlb20 / lib / sozobon / makefile < prev    next >
Makefile  |  1992-05-15  |  3KB  |  92 lines

  1. # Makefile for hacked MiNTlib for Sozobon C (version 1.33i preferably)
  2. # This makefile works with the make provided with 1.33i... sort of.
  3.  
  4. # Where to install libraries.
  5. LIBDIR = c:\sozobon\lib
  6.  
  7. # You might want any or all of these; Sozobon's make predefines most of them.
  8. AR = ar
  9. # CP = cp
  10. # RM = rm -f
  11.  
  12. # top apparently takes about 30 minutes on doprnt.c; if you don't want to
  13. # wait that long, use the alternate definition of NOOPT.
  14. CFLAGS = -O -D__NO_FLOAT__
  15. # NOOPT = -D__NO_FLOAT__
  16. NOOPT = $(CFLAGS)
  17.  
  18. # If you prefer more "standard" Unix-like names for your library files, use
  19. # the alternate definitions of CRT0 and LIBC -- assuming, of course, that
  20. # your cc has been modified to recognize those names!
  21. # CRT0 = crt0.o
  22. # LIBC = libc.a
  23. CRT0 = dstart.o
  24. LIBC = dlibs.a
  25. LIBS = $(CRT0) $(LIBC) libtermcap.a
  26.  
  27. .PHONY : all clean realclean install
  28. all : $(LIBS)
  29.  
  30. # These are in alphabetical order to make it easy to find one.
  31. OBJECTS = \
  32.     abort.o abs.o access.o alarm.o alloca.o alphasor.o atexit.o atol.o \
  33.     bcmp.o bcopy.o binmode.o bsearch.o bzero.o \
  34.     calloc.o chdir.o chmod.o clock.o close.o console.o crtinit.o ctime.o \
  35.     ctype.o \
  36.     difftime.o dirent.o doprnt.o dup.o \
  37.     eprintf.o exec.o \
  38.     fclose.o fcntl.o fdopen.o fflush.o fgetc.o fgets.o filbuf.o \
  39.     findfile.o fopen.o fopenp.o fork.o fprintf.o fputc.o fputs.o \
  40.     fread.o fscanf.o fseek.o fsetpos.o ftw.o fungetc.o fwrite.o \
  41.     getbuf.o getcwd.o getdtabl.o getenv.o getgroup.o gethostn.o \
  42.     getlogin.o getopt.o getpass.o getpid.o getpw.o getrusag.o gets.o \
  43.     getuid.o getw.o grp.o \
  44.     ioctl.o initsig.o isatty.o \
  45.     kill.o killpg.o \
  46.     linea.o link.o lmalloc.o localtim.o lockf.o lseek.o ltoa.o \
  47.     main.o malloc.o memccpy.o memchr.o memcmp.o memcpy.o memset.o \
  48.     mkdir.o mknod.o mktemp.o \
  49.     nice.o \
  50.     open.o osbind.o \
  51.     pause.o perror.o pipe.o popen.o psignal.o putenv.o \
  52.     qsort.o \
  53.     raise.o rand.o random.o read.o realloc.o regexp.o regsup.o \
  54.     rename.o rmdir.o \
  55.     sbrk.o scandir.o scanf.o select.o setbuf.o setjmp.o setlocal.o \
  56.     setrlimi.o setvbuf.o sgtty.o sigblock.o siglist.o signal.o sleep.o \
  57.     sozolong.o sozulong.o spawn.o spawnve.o spawnvp.o sprintf.o sscanf.o \
  58.     stat.o statfs.o stksiz.o strcat.o strchr.o strcmp.o strcpy.o strcspn.o \
  59.     strdup.o strerror.o strftime.o strlen.o strlwr.o strncat.o strncmp.o \
  60.     strncpy.o strpbrk.o strrchr.o strrev.o strspn.o strstr.o strtok.o \
  61.     strtol.o strtoul.o symlink.o sysconf.o system.o sysvar.o \
  62.     textio.o thread.o time.o timeoday.o tmpfile.o tmpnam.o ttyname.o \
  63.     uname.o unlink.o unx2dos.o utime.o utmp.o \
  64.     vfork.o \
  65.     wait.o wait3.o write.o wtmp.o
  66. #    div.o
  67.  
  68. # unfortunately, this will fail miserably the first time around...
  69. $(LIBC) : $(OBJECTS)
  70.     $(AR) rv $@ $?
  71.  
  72. doprnt.o: doprnt.c
  73.     $(CC) $(NOOPT) -c $?
  74.  
  75. libtermcap.a : termcap.o
  76.     $(AR) rv $@ $?
  77.  
  78. # this is ugly, but I can't think of a way around it without risking the TOS
  79. # "copy file to itself" bug.  If you have CRT0 = crt0.o, this rule will
  80. # never be used anyway.
  81. dstart.o : crt0.o
  82.     $(CP) $? $@
  83.  
  84. clean :
  85.     $(RM) *.o
  86.  
  87. realclean : clean
  88.     $(RM) $(LIBS)
  89.  
  90. install : $(LIBS)
  91.     $(CP) $(LIBS) $(LIBDIR)
  92.